package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.bean.Employee;
import com.itheima.bean.PageParam;

public interface EmployeeService {

    /**
     * 登录
     * @param employee
     * @return 这个员工的真实数据
     */
    Employee login(Employee employee);

    /**
     * 添加用户
     * @param employee
     * @return
     */
    int add(Employee employee);

    /**
     * 分页查询员工
     * @param pageParam
     * @return
     */
    IPage<Employee> findPage(PageParam pageParam);

    /**
     * 修改用户信息
     * @param employee
     * @return
     */
    int update(Employee employee);
}
